package com.stu.Test;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.stu.Dao.UserDao;

public class TestIoC {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
		UserDao userDao=(UserDao)applicationContext.getBean("userDao");
		userDao.say();

	}

}
